import request from '@/utils/request'

// 查询用户职业资质认证列表
export function listProfessionRecord(query) {
  return request({
    url: '/biz/professionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户职业资质认证详细
export function getProfessionRecord(id) {
  return request({
    url: '/biz/professionRecord/' + id,
    method: 'get'
  })
}

// 新增用户职业资质认证
export function addProfessionRecord(data) {
  return request({
    url: '/biz/professionRecord',
    method: 'post',
    data: data
  })
}

// 修改用户职业资质认证
export function updateProfessionRecord(data) {
  return request({
    url: '/biz/professionRecord',
    method: 'put',
    data: data
  })
}

// 删除用户职业资质认证
export function delProfessionRecord(id) {
  return request({
    url: '/biz/professionRecord/' + id,
    method: 'delete'
  })
}

// 启用禁用用户职业资质认证
export function changeStatus(data) {
  return request({
    url: '/biz/professionRecord/changeStatus',
    method: 'put',
    data: data
  })
}
// 审核
export function audit(data) {
  return request({
    url: '/biz/professionRecord/audit',
    method: 'post',
    data: data
  })
}
